package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-24
 * Time: 上午9:44
 * To change this template use File | Settings | File Templates.
 */

/**
 * 用户账号密码保存的地方
 */
@Entity
@Table(name = "ORG_UserInfo")
public class ORG_UserInfo {

    @Id
    @GenericGenerator(name = "ResGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "ResGenerator") //使用uuid的生成策略
    private Integer id;
    private Integer userId;
    private java.lang.String username;
    private java.lang.String password;
    private Integer status;
    private java.lang.String brief;
    private java.lang.String historyPwdList;
    private java.util.Date updateTimeStamp;
    private java.util.Date createTimeStamp;
    private java.util.Date statusChangeTime;
    private java.util.Date passwordUpdateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getHistoryPwdList() {
        return historyPwdList;
    }

    public void setHistoryPwdList(String historyPwdList) {
        this.historyPwdList = historyPwdList;
    }

    public Date getUpdateTimeStamp() {
        return updateTimeStamp;
    }

    public void setUpdateTimeStamp(Date updateTimeStamp) {
        this.updateTimeStamp = updateTimeStamp;
    }

    public Date getCreateTimeStamp() {
        return createTimeStamp;
    }

    public void setCreateTimeStamp(Date createTimeStamp) {
        this.createTimeStamp = createTimeStamp;
    }

    public Date getStatusChangeTime() {
        return statusChangeTime;
    }

    public void setStatusChangeTime(Date statusChangeTime) {
        this.statusChangeTime = statusChangeTime;
    }

    public Date getPasswordUpdateTime() {
        return passwordUpdateTime;
    }

    public void setPasswordUpdateTime(Date passwordUpdateTime) {
        this.passwordUpdateTime = passwordUpdateTime;
    }
}
